

**** make sure pscalc is installed ****

***** Table 2 ********


**** Top Left ****

use "/Users/scottfabramson/Dropbox/io_endogenous_replication/main_text_do/tables/table_2/upper_left.dta",clear





gen logUD = log(total_urban_1800/Shape_Area+.001)


gen lng = long


reg regional_gdp_pc logUD, cluster(country)

eststo a1


reg regional_gdp_pc logUD i.country, cluster(country)

eststo a2


reg regional_gdp_pc logUD i.country agri rugged coast_dist coast_length lat lng, cluster(country)

eststo a3 


reg regional_gdp_pc logUD i.country agri rugged coast_dist coast_lengt lat lng


psacalc beta logUD, rmax(1)



gen loggdppc = log(regional_gdp_pc)



reg loggdppc logUD, cluster(country)

eststo a4


reg loggdppc logUD i.country, cluster(country)

eststo a5

reg loggdppc logUD i.country agri rugged coast_dist coast_length lng, cluster(country)


eststo a6



reg loggdppc logUD i.country agri rugged coast_dist coast_lengt lng


psacalc beta logUD, rmax(1)



****** Top Right *******



use "/Users/scottfabramson/Dropbox/io_endogenous_replication/main_text_do/tables/table_2/upper_right.dta",clear



gen logUD = log(total_urban_1800/Shape_Area+.001)


gen lng = long


reg regional_gdp_pc logUD, cluster(country)


eststo b1


reg regional_gdp_pc logUD i.country, cluster(country)



eststo b2


reg regional_gdp_pc logUD i.country agri rugged coast_dist coast_length lat lng, cluster(country)

eststo b3


reg regional_gdp_pc logUD i.country agri rugged coast_dist coast_lengt lat lng

psacalc beta logUD, rmax(1)



gen loggdppc = log(regional_gdp_pc)



reg loggdppc logUD, cluster(country)

eststo b4



reg loggdppc logUD i.country, cluster(country)

eststo b5




reg loggdppc logUD i.country agri rugged coast_dist coast_length lat lng, cluster(country)


eststo b6


reg loggdppc logUD i.country agri rugged coast_dist coast_lengt lat lng


psacalc beta logUD, rmax(1)


****** Bottom Left *******


use "/Users/scottfabramson/Dropbox/io_endogenous_replication/main_text_do/tables/table_2/lower_left.dta",clear




gen logUD = log(U/SHAPE_Area+.001)

gen lng = long


tabulate country, g(cnty)


reg GDPPC logUD, cluster(country)


eststo c1


reg GDPPC logUD cnty*, cluster(country)

eststo c2



reg GDPPC logUD cnty* agri rugged coast_dist coast_length lat lng, cluster(country)


eststo c3

reg GDPPC logUD cnty* agri rugged coast_dist coast_lengt lat lng


psacalc beta logUD, rmax(1)



gen loggdppc = log(GDPPC)



reg loggdppc logUD, cluster(country)

eststo c4

reg loggdppc logUD cnty*, cluster(country)


eststo c5

reg loggdppc logUD cnty* agri rugged coast_dist coast_length lat lng, cluster(country)

eststo c6


reg loggdppc logUD cnty* agri rugged coast_dist coast_lengt lat lng


psacalc beta logUD, rmax(1)




****** Bottom Right *******


use "/Users/scottfabramson/Dropbox/io_endogenous_replication/main_text_do/tables/table_2/bottom_right.dta",clear






gen logUD = log(U/SHAPE_Area+.001)

gen lng = long


tabulate country, g(cnty)


reg GDPPC logUD, cluster(country)


eststo d1


reg GDPPC logUD cnty*, cluster(country)

eststo d2



reg GDPPC logUD cnty* agri rugged coast_dist coast_length lat lng, cluster(country)


eststo d3

reg GDPPC logUD cnty* agri rugged coast_dist coast_lengt lat lng


psacalc beta logUD, rmax(1)



gen loggdppc = log(GDPPC)



reg loggdppc logUD, cluster(country)

eststo c4

reg loggdppc logUD cnty*, cluster(country)


eststo c5

reg loggdppc logUD cnty* agri rugged coast_dist coast_length lat lng, cluster(country)

eststo c6


reg loggdppc logUD cnty* agri rugged coast_dist coast_lengt lat lng


psacalc beta logUD, rmax(1)





